.class Lcom/waiqin365/lightwork/tracker/i;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/d;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/tracker/d;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 7

    const/16 v6, 0x8

    const/4 v5, 0x0

    const v4, 0x7f0c01ed

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/d;->a(Lcom/waiqin365/lightwork/tracker/d;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p2, v0

    if-ltz v0, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/d;->a:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightwork/tracker/model/u;->a(I)Lcom/waiqin365/lightwork/tracker/model/t;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v0, v1, Lcom/waiqin365/lightwork/tracker/model/t;->a:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/d;->e(Lcom/waiqin365/lightwork/tracker/d;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/d;->e(Lcom/waiqin365/lightwork/tracker/d;)Landroid/view/View;

    move-result-object v0

    const v2, 0x7f0c0bbe

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/model/t;->l:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/String;->charAt(I)C

    move-result v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/d;->e(Lcom/waiqin365/lightwork/tracker/d;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/i;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/d;->e(Lcom/waiqin365/lightwork/tracker/d;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 0

    return-void
.end method
